<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>我的退单</title>
    <link rel="stylesheet" href="__PUBLIC__/Home/css/personCenter/personReturn.css" >
  </head>
  <body>
    <div style="width:690px;height:auto;">
      <div style="height:auto;float:left;width:100%;margin: 20px 0 15px;">
        <h1 style="float:left;height:30px;line-height:30px;font-size:28px;">我的退单</h1>
        <!-- 清除浮动 -->
        <div style="clear:both"></div>
        <!-- form表单提交到数据库，提交到数据库后，后台对数据库进行操作和处理 -->
        <form class="myform" action="{:u('orderReturnAdd')}" method="post">
          <input type="hidden" name="username" value="{$userlist.username}">
          <input type="hidden" name="user_id" value="{$userlist.user_id}">
          <input type="hidden" name="order_status" value="{$orderlist.order_status}">
          <div class="mybox">
            <span>订单号：</span>
            <input type="text" name="order_num" value="{$orderlist.order_num}" readonly="readonly" class="myinput">
          </div>
          <div class="mybox">
            <span>商品名：</span>
            <input type="text" name="goods_name" value="{$detaillist.goods_name}" readonly="readonly" class="myinput">
          </div>
          <div class="mybox">
            <span>价格：</span>
            <input type="text" name="good_num" value="{$detaillist.price}" readonly="readonly" class="myinput">
          </div>
          <div class="mybox">
            <span>数量：</span>
            <input type="text" name="good_num" value="{$detaillist.good_num}" readonly="readonly" class="myinput">
          </div>
          <div class="mybox">
            <span>总价：</span>
            <input type="text" name="total" value="{$detaillist.total}" readonly="readonly" class="myinput">
          </div>
          <div class="mybox">
            <span>退货原因：</span>
            <select class="myselect" name="myreason">
              <option value="1">我不喜欢</option>
              <option value="2">买错了</option>
              <option value="3">颜色或尺寸不合适</option>
              <option value="4">收货时有损坏</option>
              <option value="5">与商城介绍不符</option>
              <option value="6">三天内未发货</option>
              <option value="7">有质量问题</option>
            </select>
          </div>
          <div class="mybox" style="width:400px;height:200px;">
            <p><span>其他原因及备注：</span></p>
            <div style="margin-top:15px;">
              <textarea name="elsereason"></textarea>
            </div>
          </div>
          <div class="mybox" style="margin-top:20px;">
            <a href="#" class="return">返回</a>
            <input type="submit" value="确认退货" class="return">
          </div>
        </form>

      </div>
      <div style="clear:both"></div>
    </div>
  </body>
  <script type="text/javascript">
      window.onload = function(){
        var mywidth=document.body.scrollHeight;
        console.log(mywidth);
        top.document.getElementById('show').innerHTML = mywidth;
        top.back();
      };
  </script>
</html>
